home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / src / mrq_library.lha / lib / include / C / libraries / mrq.h
C/C++ Source or Header  |  1980-09-06  |  6KB  |  124 lines

  1. /* WARNING!!! I'm not sure if all C includes for mrq.library v1.12 */
  2. /* are error free!!! I'm still working on it. Be careful!          */
  3.  
  4. #ifndef LIBRARIES_MISTERQ_H
  5. #define LIBRARIES_MISTERQ_H 1
  6.  
  7. #ifndef EXEC_TYPES_H
  8. #include <exec/types.h>
  9. #endif
  10.  
  11. #ifndef DOS_DOS_H
  12. #include <dos/dos.h>
  13. #endif
  14.  
  15. #ifndef GRAPHICS_GFX_H
  16. #include <graphics/gfx.h>
  17. #endif
  18.  
  19. #ifndef INTUITION_INTUITION_H
  20. #include <intuition/intuition.h>
  21. #endif
  22.  
  23. #ifndef LIBRARIES_REQTOOLS_H
  24. #include <libraries/reqtools.h>
  25. #endif
  26.  
  27. #define DOSLIB_ERROR  0x01
  28. #define GFXLIB_ERROR  0x02
  29. #define REQLIB_ERROR  0x04
  30. #define INTLIB_ERROR  0x08
  31. #define ASLLIB_ERROR  0x10
  32. #define CYBERLIB_EROR 0x20
  33.  
  34. #define AGA_DISPLAY   0xf000
  35. #define CGX_DISPLAY   0xff00
  36.  
  37. struct MisterQBase
  38. {
  39.    struct DosLibrary *DOSBase;               // adresy bazowe otwartych bibliotek
  40.    struct GfxBase *GfxBase;
  41.    struct IntuitionBase *IntuitionBase;
  42.    struct ReqToolsBase *ReqToolsBase;
  43.    struct Library *AslBase;
  44.    struct Library *CyberGfxBase;
  45.  
  46.    LONG _szer;                           // szerokoôê ekranu
  47.    LONG _wys;                            // wysokoôê ekranu
  48.    LONG chmaxx;                          // szerokoôê okna wyôwietlania
  49.    LONG chmaxy;                          // wysokoôê okna wyôwietlania
  50.    UWORD ChunkyMode;                     // tryb pracy C2P w zaleûnoôêi od koôci GFX (AGA_DISPLAY,CGX_DISPLAY)
  51.    struct RastPort *s_RastPort;          // rastport ekranu otwartego za pomocâ MOpenScreen()
  52.    struct Screen *WB_Base;               // adres struktury Screen ekranu WB. Pole wypeînia procedura MOpenScreen()
  53.    struct ViewPort *WB_ViewPort;         // adres struktury ViewPort ekranu WB. Pole wypeînia procedura MOpenScreen()
  54.    struct Screen *s_ScreenBase;          // adres struktury Screen ostatnio otwartego ekranu. Pole wypeînia procedura MOpenScreen()
  55.  
  56.    PLANEPTR _bitplan0;                   // wskaúniki na bitplany otwartego ekranu.
  57.    PLANEPTR _bitplan1;                   // Pola wypeînia procedura MOpenScreen()
  58.    PLANEPTR _bitplan2;           
  59.    PLANEPTR _bitplan3;           
  60.    PLANEPTR _bitplan4;           
  61.    PLANEPTR _bitplan5;           
  62.    PLANEPTR _bitplan6;           
  63.    PLANEPTR _bitplan7;           
  64.  
  65.    LONG LibraryError;                  // która z otwieranych bibliotek przez MisterQInit() sië nie otwarîa.
  66.    LONG BestModeTags;                  // !private!   Pole wypeînia procedura MOpenScreen()
  67.    LONG ScreenTags;                    // !private! (Tagi otwieranego ekranu)  Pole wypeînia procedura MOpenScreen()
  68.    struct BitMap *BitMapSTR;           // adres struktury Bitmap ostatnio otwartego ekranu. Pole wypeînia procedura MOpenScreen()
  69.    struct FileRequest *FileRequest;    // adres struktury FileRequest ostatnio otwartego requestera do wyboru plików                                                
  70.  
  71.    STRPTR _FileName;                   // adres îaïcucha tekstowego - nazwy pliku
  72.    STRPTR _DirName;                    // adres îaïcucha tekstowego - nazwy katalogu
  73.    STRPTR _Path;                       // adres îaïcucha tekstowego - peînej ôcieûki dostëpu wraz z plikiem
  74.  
  75.    LONG _FileSize;                     // dîugoôê ostatnio wczytanego pliku
  76.    APTR _FileAddr;                     // adres ostatnio wczytanego pliku
  77.    STRPTR tabdec1;                     // adres ciâgu ASCII liczby dziesiëtnej z zerami - zakres +/- 2 miliardy  
  78.    STRPTR tabdec2;                     // adres ciâgu ASCII liczby dziesiëtnej bez pierwszych zer, zakres ten sam  
  79.    STRPTR tabhex1;                     // adres ciâgu ASCII liczby szesnastkowej.  
  80.    STRPTR tabroman1;                   // adres ciâgu ASCII liczby rzymskiej.
  81.    WORD _kolor0;                       // kolor 0 tekstu patrz funkcja WyswTXT
  82.    WORD _kolor1;                       // kolor 1 tekstu patrz funkcja WyswTXT                        
  83.  
  84.    struct Window *s_WinBase;           // adres struktury Window otwartego okna na ostatnio otwartym screenie - patrz MOpenScreen()
  85.    struct Library *GadToolsBase;       // adres bazowy biblioteki gadtools
  86.    APTR Screen_Tags;                   // opcjonalnie adres Tagów dla nowo otwieranego ekranu - patrz MOpenScreen()
  87.    WORD Precc;                         // wîâczenie 'precyzyjnej (do 1 pixela) procedury C2P
  88.    struct Window *WindowTags;          // !Private!  (wskaúnik na tymczasowâ strukturë window)
  89.    struct Screen *ScrSTR;              // !Private!  (wskaúnik na tymczasowâ strukturë Screen)
  90.    APTR buff1;                         // !Private!  (wskaúnik na osiem bajtów dla C2P)
  91.  
  92.  
  93. };
  94.  
  95. struct MScreen
  96. {
  97.    struct Window *s_Win_Base;      // adres struktury window otwartego okna backdrop
  98.    struct Screen *s_ScreenBase;    // adres struktury screen otwartego ekranu
  99.    struct RastPort *s_RastPort;    // adres rastportu otwartego ekranu
  100.    struct BitMap *s_BitMap_STR;    // adres struktury bitmap otwartego ekranu
  101.    LONG  s_BestModeTags;           // !private!
  102.    LONG s_ScreenTags;              // !private!
  103.    PLANEPTR s_bitplan0;            // adresy bitplanów
  104.    PLANEPTR s_bitplan1;
  105.    PLANEPTR s_bitplan2;
  106.    PLANEPTR s_bitplan3;
  107.    PLANEPTR s_bitplan4;
  108.    PLANEPTR s_bitplan5;
  109.    PLANEPTR s_bitplan6;
  110.    PLANEPTR s_bitplan7;
  111.  
  112.    LONG s_ModeID;                   // tryb otwartego ekranu
  113.    struct MsgPort *s_UserPort;      // userport okna backdrop na ekranie
  114.    struct ViewPort *s_ViewPort;     // ViewPort otwartego ekranu
  115.    APTR s_RasInfo;                  // RasInfo otwartego ekranu
  116.    LONG s_Height;                   // wysokoôê otwartego ekranu
  117.    LONG s_Width;                    // szerokoôê otwartego ekranu
  118.    LONG s_OffSet;                   // odstëp pomiëdzy dwoma ekranami (w trybie double buffer)
  119.    APTR s_WindowTags;               // !private! (wskaúnik na tagi dla OpenWindowTagList() )
  120.  
  121. };
  122.  
  123. #endif  /* !MISTERQ_MISTERQ_H */
  124.